package com.yyge.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yyge.entity.AdminUser;
import com.yyge.service.AdminUserService;
import com.yyge.mapper.AdminUserMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【hxzy_exam_admin_user】的数据库操作Service实现
* @createDate 2023-06-09 10:21:13
*/
@Service
public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser>
    implements AdminUserService{
    @Override
    public AdminUser findByName(String loginName){
        QueryWrapper<AdminUser> wrapper=new QueryWrapper<AdminUser>().eq("login_user_name",loginName);
      return  this.getOne(wrapper);
    }
}




